# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/lwp/lwp-2.2.ebuild,v 1.8 2007/11/26 13:14:05 corsair Exp $

inherit eutils git autotools

DESCRIPTION="Light weight process library (used by Coda).  This is NOT libwww-perl."
HOMEPAGE="http://www.coda.cs.cmu.edu/"
#SRC_URI="http://www.coda.cs.cmu.edu/pub/lwp/src/${P}.tar.gz"

EGIT_REPO_URI="git://coda.cs.cmu.edu/project/coda/dev/${PN}.git"

SLOT="1"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="sys-apps/grep
	sys-apps/sed
	sys-devel/libtool
	sys-devel/gcc"
RDEPEND=""

S="${WORKDIR}/${PN}"

pkg_setup() {
	EGIT_BOOTSTRAP="bootstrap.sh"
}

src_compile() {
	econf || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "make install failed."
	dodoc AUTHORS NEWS PORTING README
}
